package com.acwer.drools.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

import com.acwer.drools.domain.MDC;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

@Repository
//@CacheConfig(cacheNames="MDCDao")
//@Cacheable
public interface MDCDao  extends BaseMapper<MDC>{
	
	
	@Select({ "<script>", 
		"select jbbm,mdc from MDC  where jbbm=#{code} UNION ALL select jbbm,mdc from OMDC WHERE  jbbm=#{code}", 
			"</script>" 
		})
	public  List<MDC> getMDcList(String  code);
	
	
	
}
